#ifndef WIKIINFOTABLE_H
#define WIKIINFOTABLE_H

#include <QObject>
#include <QSqlDatabase>
#include "sqlite_manager.h"

class WikiInfoTable
{
public:
    WikiInfoTable();

    bool insertNewWiki(QString uuid, QString wikiName, QString parentUuid);
    bool insertWikiInTransiction(QString uuid,
                                 QString wikiName,
                                 QString parentUuid,
                                 SqliteManager &sm);
    bool updateWikiName(QString uuid, QString wikiName);
    bool updateWikiParentUuid(QString uuid, QString parentUuid);

    bool selectAll(QList<QString>fields, QList<QVariantList>&data);
    bool deleteWikiByUuidInTransaction(QString uuid, SqliteManager &sm);
};

#endif // WIKIINFOTABLE_H
